import request from '@/utils/request'
import { downLoadZip } from '@/utils/zipdownload'

// 查询学员列表
export function listStudent(query) {
  return request({
    url: '/api/v1/sys-student',
    method: 'get',
    params: query
  })
}

// 查询学员详细
export function getStudent(id) {
  return request({
    url: '/api/v1/sys-student/' + id,
    method: 'get'
  })
}

// 学员退学、结业
export function updateBuyStatus(data) {
  return request({
    url: '/api/v1/sys-student/updateBuyStatus',
    method: 'put',
    data: data
  })
}

// 学员导出
export function exportExcel(query) {
  downLoadZip('/api/v1/sys-student/excel', query)
}
